
#include "SyncObject.h"

namespace common {

//Number of sync objects we can wait for.
unsigned char SyncObject::maximumWaitObjects = 10;

//Value for infinite waits.
unsigned int SyncObject::infiniteWait = 0xFFFFFFFF;

//Creates new event.
//@param manualReset If true, then this object has to be set to non-signaled manualy trough Reset
//@param initialState If true initial state is signaled.
//@param name Name of the object
Error::code Event::Create(bool manualReset, bool initialState, string name) {
  // Bouml preserved body begin 00031318
  // Bouml preserved body end 00031318
}

//Opens named mutex if such exists.
Error::code Event::Open(string name) {
  // Bouml preserved body begin 00031398
  // Bouml preserved body end 00031398
}

//Manualy resets signaled object to non-signaled state.
Error::code Event::Reset() {
  // Bouml preserved body begin 00031418
  // Bouml preserved body end 00031418
}

//Changes object to signaled state.
Error::code Event::Set() {
  // Bouml preserved body begin 00031498
  // Bouml preserved body end 00031498
}

Error::code Semaphore::Create(unsigned int initialCount, unsigned int maximumCount, const string & name) {
  // Bouml preserved body begin 0002B32A
  // Bouml preserved body end 0002B32A
}

//Opens existing semaphore.
Error::code Semaphore::Open(const string & name) {
  // Bouml preserved body begin 0002B3AA
  // Bouml preserved body end 0002B3AA
}

//Increases the count of the specified semaphore object by a specified amount.
Error::code Semaphore::Release(unsigned int releaseCount, unsigned int & previousCount) {
  // Bouml preserved body begin 0002B42A
  // Bouml preserved body end 0002B42A
}


} // namespace common
